8. counters

你好。
Hello.

在本教程中,我们将学习如何在四到三的教学中使用计数器指令。
In this tutorial, we will learn how can use counter instruction in teach four to three.

首先介绍一下我们的网站,我们会去会签,然后你会看到计数器向上和计数器向下的功能。
Firstly, intro our site, we will go to countersign and then you will see the counter up and counter down functions.

首先,让我们从 L.D 开始,我将在这里定义这个条件。
First of all, let's start with the L.D, the condition I will define here.

例如,Aldi 有一款 Aldi 11。
For example, Aldi has an Aldi 11.

但是当我使用计数器向上和向下时,它会下降。
But while I am, when I use counter up and down, it will go down.

由于 CTU 计数器的增加,我将指导这一点。
I will direct this one because of this CTU counter up.

我将把它放在这里,好吧,我的目标是这里。
I will put it two here, OK, and I will aim to here.

我们有计数器向上功能和五个三输入输出。
We have the counter up function and five three input to output.

因此,计数器向上,您将看到输入的平均值计数器,这是重置输入。
So counter up you will see your means counter of input and this is the reset input.

这是当前值输入。
This is the present value input.

这是我将运行的输出,这是计数器值。
This is the output I will orbit and this is the counter value.

好的,让我们从计数器应用程序开始,我将吃掉与这里相关的空间,好的,每秒脉冲一次。
OK, and let's start with the counter app and I will eat my spatial relate to here, OK, with pulses each one second.

当我 10 点时它会停顿一下,我会听到计数器计数的声音。
It will give one pause when I am 10 is on OK, I will get to hear counter up.

输入然后此重置输入。
Input and then this reset input.

M11 将作为我的重置输入,好吗?
M11 is going to be my reset input, OK?

像这样并呈现给你,我会写,例如,25。
And like that and present for you, I will write, for example, 25.

例如,作为输出,我们可以像这样使用 em 12 。
And as an output, for example, we can use em 12 like that.

当我们开始反击时,我们就可以进行反击。
And already, while we are starting to counter up, we can work with the counter down.

也坐,就是柜台朝下的意思。
Also seated, it means counter down.

好的?
Okay?

我们现在就需要这样做。
And we need to now.

我们需要知道其中的区别。
We need to know the difference.

在这里我们进行了重置。
Here we have the reset.

例如,现在计数器值是7,如果我激活这个M11,它将重新访问。
For example, counter value is seven now, and if I activate this M11, it will be revisited.

但台面,它会提供另一种选择。
But countertop, it will give another option.

它有 L.D.
It has the L.D.

这就是很多。
This is the lot.

因此它将把当前值锁定到该计数器。
So it is going to lock the present value to this counter.

好的,让我们继续 L l m 20,LDP 是 8013 又一秒时钟经过。
OK, let's continue with the L l the m 20 and LDP is eight thousand thirteen and one second clock pass.

让我们将其添加到此处的台面输入中,以色列和阿尔迪 m 21 的光量是否正常以及当前值?
And let's add it to here countertop input put Israeli and Aldi m 21 is the light volume OK and the present value?

我再说一遍二五。
I will say two five again.

例如,作为输出,我们可以说“我是二十二岁”,因为我们可以在这里看到计数器值,所以我们可以说“零”。
And as an output, for example, we can say out I am twenty two and here because we can see the counter value here, we can say the zero.

在这里我们可以说 d y OK,让我们转换整个项目。
Here we can say d y OK, let's convert the complete project.

我会说,好的,我们将进入模拟器,看看计数是否正确?
And I will say, OK, and we will go to simulator and we will see, is it counting correctly or not?

写作已经完成,我们已经准备好了。
Writing is finished and we are ready.

您将看到这是时钟经过,但没有递增计数,或者它不是命令和控制向下指令,因为现在条件已关闭。
You will see this is the clock passes, but not incrementing to counter up, or it is not the command and control down instruction because the conditions are off now.

首先,我将激活M10,我们看看它是否递增。
Firstly, I will activate M10 and we will see if it incrementing or not.

我还将插入 M11 来重置我的计数器。
And also I will insert M11 to reset my counter.

好的?
OK?

M10 现在已开启,每一秒您都会看到一、二、三、四和五。
M10 is now on and each second you will see one, two, three and four and five.

发生了什么?
What's happening?

它根据脉冲而递增。
It is incrementing, according to the pulses.

好的,一一进行。
OK, one by one.

好的。
OK.

我会成功的。
And I will make it off.

然后停止计数。
Then the counting is stopped.

而且,如果我将它们 11 更新为关闭状态,会发生什么?
And also, if I update them 11 on to off condition, what happened?

计数器音量已重置。
Counter volume is reset.

如果我激活并进行身份验证,它将计数,并在两次和五次输入后应用于此功能。
If I activate and authenticate, it will count and after two and five time input is applied to this function.

它将给出一个输出,然后在重新启动时将停止对输入策略进行计数。
It will give an output and then it is going to be stopped to count input policies when it is restarted.

它将开始拍摄 20、21、22,您现在可以将注意力集中到此处。
It will start taking and 20, 21, 22, and you can now focus to here.

我们有一个输出。
We have an output.

它现在正在做脉冲,但它不计数,为什么?
It is doing it pulses now, but it is not counting why?

因为它已经完成了,据说我们已经有了输出。
Because it is already finished and it is said that we have an output.

另外,我们可以使用这个计数器,呃,函数数据,但现在不行。
Also, we can use this counter, uh, functions data, but not now.

首先,我们看到了如何使用计数器?
Firstly, we saw how can we use counter up?

我会成功的。
I will make it off.

但是,虽然这就是我们可以重置它的全部,好吧,我们知道它已经重置了。
But while it is all we can reset it, OK, and we learned it's reset it.

好的,让 11 都为真,它是相关的。
OK, let's make 11 all true, and it is related.

虽然这是真的,但它并不计数,因为根据我们的书,重置是他的高优先级,我会完成它,并且它将在这个计数器上再次计数。
And while it's true, it is not counting because Reset is his high priority, according to our book, and I will make it off and it's going to count again at this counter.

托尼·S。
Tony S.

我们需要的。
What we need.

首先,如果我激活它们 10 OK,这是不正确的,但我会先这样做,然后 10 就打开了。
Firstly, if I activate them 10 OK, this is not correct, but I will do it firstly and 10 is on.

但你会说这不是倒计时。
But you will say it is not counting down.

为什么?
Why?

因为我们没有丢失任何数据。
Because we did not lost any data.

突然我们就有了输出。
Suddenly we have an output.

你会明白为什么。
You will see why.

计数器指示是尿量。
Counter up instruction is urine output.

当达到设定音量时,减计数选择在达到零时给出输出。
When it reached to set volume, counter down selection is given output when it reaches to zero.

由于这一点和真实的条件,M21 将开启。
Because of that and true number of condition, M21 is going to be on.

好的。
OK.

首先,我将从 M21 公路出发。
Firstly, I will make it off M21.

我会说,好吧,它被选中了。
I will say, OK, it's selected.

然后它现在已加载您将看到的数据。
Then it is now loaded the data you will see.

现在已经二十五岁了,我会成功的。
It's twenty five and I will make it off.

25年后,又去镇压叛乱。
Then 25 years later, to counter down insurrection.

然后,如果我激活他们 20,这个联系人,我就会接通。
And then if I activate them 20, this contact, I will make it on.

您会看到现在正在倒计时 20 到 21。
You will see it is now counting down 20 to 21.

当它达到零时,我们将从 M22 得到输出。
And when it reached to zero, we will get an output from M22.

好的。
OK.

11.

11.

让我们重置它,我会把它关掉。
Let's reset it and I will make it off.

好的。
OK.

九、八、九、七、九、六、五、四。
Nine, eight, nine, seven, nine, six and five and four.

这又是时钟每秒钟传递一次,我们还没有把它确定。
This is once again the clock pass each one second it is to implementing and we have not put OK.

您将看到这就是我们如何使用计数器向上和计数器向下功能或指令以及。
You will see this is how can we use counter up and counter down functions or instructions and also.

我将在这里向您展示的另一件事是我们可以使用 Aldi,例如 CQ one,然后我们就有了一个观点。
One more thing that I will show you here we can use Aldi, for example, CQ one, and then we have a point.

好的。
OK.

我们可以看到,好的,我们可以使计数器递增或对计数器值或输出或复位输入进行计数。
And we can see, OK, we can get the counter up or count the counter value or the output or the reset input.

好的?
OK?

还要别的吗?
Anything else?

例如,我们可以获取当前值,但这是我们可以使用的旧数据,例如,如果激活了该数据,则可以使用世界数据。
For example, we can get the present value, but this is a vintage data into contact we can use, for example, the world data if this is activated.

好的,抱歉,我们需要去最右边的 Aldi C2。
OK, sorry, we need to go to rightmost and Aldi C2 one.

Q点,好的,我们也可以在上下文中使用这个输出,或者我们还没有学习下一个教程的竞争指令和扇区路径,我们可以使用计数器上台面指令的整数数据,例如计数器你现在的样子,但是好吧,这很重要。
Point Q, OK, we can use this output also here in the context, or we did not learn yet the competition instructions and sector path into next tutorials we can use to integer data off the counter upper countertop instruction like counter what you are like present, but OK, this is important.

这真是太好了。
And this is this is really good.

呃,我们可以使用的软件从技术上来说我们可以得到任何我们想要的东西。
Uh, software that we can use is technically we can get anything else what we want.

现在本教程我已经完成了。
And now for this tutorial, I'm finished here.

如果您在任何时候遇到困难,可以立即向我询问有关故事的问题。
If you're stuck at any point, you can ask me a question immediately for the story.

我完成了。
I'm finished.

我们将在下一个教程中见到您。
You see you in the next tutorial.